package com.nengchuan.kbms.dfs.entity.dto;

import com.nengchuan.kbms.dfs.annotation.Relation;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * <p>
 * 供应商 DTO
 * </p>
 *
 * @author abe
 * @since 2020-04-24
 */
@Data
@ApiModel(value = "ManufacturerDTO 对象", description = "供应商 DTO")
public class ManufacturerDTO {

    @ApiModelProperty(value = "供应商id", position = 10)
    private Long id;

    @Relation
    @NotBlank(message = "供应商名称不能为空")
    @Size(min = 1, max = 40, message = "供应商名称长度不大于40个字符")
    @ApiModelProperty(value = "供应商名称", position = 20)
    private String manufacturerName;

}
